package me.sdevil507.org.events;

import org.springframework.context.ApplicationEvent;

import java.util.Date;

/**
 * 自定义事件:更新最后登录时间
 *
 * @author sdevil507
 */
public class OrgUserLastLoginTimeEvent extends ApplicationEvent {

    /**
     * 用户名
     */
    private String phoneNumber;

    /**
     * 最后登录时间
     */
    private Date date;

    public OrgUserLastLoginTimeEvent(Object source, String phoneNumber, Date date) {
        super(source);
        this.phoneNumber = phoneNumber;
        this.date = date;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }
}
